Adding config files priority. Changing chaining functionality