refactored user profile tasks for files