update route handler to support native route API