fix hostlist parsing