added error handlers to routes