added globalconf
making flags actually work
cmdConfig