add flag API to companies
fix company flagging