added getConfigPath function