move flag defn to _build.js