Mean field and beyond in nuclei far from stability lines