move to swig