refactoring: added setup method and loading route files