added 404/500 errors