mostly functional, can't test with broker code in place
make amqp usage configurable