use slave.slavename instead of slave.name