fixes bugs related to hostselection and prepares for webmf config"