update route and implement swig