REF: refactored main method in user_service