renamed api to apiUtil