small change to flag API