update profile and config