fix #1037 to use route information instead