profile update and minor bug fixes