working on command line tool for api