adding API structure.