updated host/config loop