better config file matching