handles new config file better, a new get_host function among others