add typedefs for structs