Refactored MyProfile handling. fix #45