add errorHandler method
add route method