fixed routing, added get_routes method that returns all routes instead of just one