update for swig 1.x (it's broken)