func to get the right config file