read config files from a directory