fixed up SWIG bindings