update swig snippet