support hosts from stdin