add a logging statement before changing profile