1) revert the changes to profile 2) add groups to profile