one function built that reads config files