refactoring: retrieving trips moved to backend