switched to OpenStruct#marshal_dump for 1.9 compability