use gateway in route