use regular attribute accessors instead of []/[]= on OpenStruct to maintain 1.9 compability