read/write structs broke