predefine structs for api