remove unused nextSlave functions
implement aws_wait for next slave function