revert back to swig