add AMS support to User model