adding basic route error handling