switch to swig extension