moved everything to flags