fixed host creation and auto group creation. Not well tested with multiple groups at once