fixed some errors with routes and imports