refactor flag name