changed error handling in route provider