keep flags synchronized with project