refactored getting objects from client