change the way defaults are set

This is to get it working with Marshal.dump