remove assumptions about slave name format (slave-N) and treat res.host opaquely