Mean field studies of exotic nuclei