change output format for get_companies
start work on api