switch to swig