handled error when config file doesn't exist or is null