add structure for api