- added error reporting for routes