preliminary swig support