refactors amqp queue class