remove sizeof binary, update structs for codegen