fixed bug with order of operations that made the cli ignore config file options.