changed conf to flags