updated version to fit within the 1.9 range for the amqp library