updating api, moving to cli