consolidate Config and Flags