refactored clients controller examples