map structs to the buffer in a stupid way D: