writes company_id to environment