added new method update profile; set now completely replaces the profile