build up data structs files