add first error handling for errors during routing