added funtion to test if config file exists.
unsure if addressing the right url though