take route type into consideration