cleanup some old flags