add some util method to RouteHandler