make sure to copy the values in the swig wrappers