special casing for swig isn't actually needed