bind onQueueDrain properly