added more functionality to ConfigFile