improve the quality of route type detection