add a tiny bit better check for config file