figure out swig