resolve dependency in user model