adding a 500 route and a handle for it