fixed api variables, api return is a struct