fixed some scopes, method in profile model, user factory