added support for route type