making swig-stub functional