ah, now to flatten structs