added policies, added user profile functions