added missing check for existence of config file when hosting