added on handlers to amqp lib