updated for version 3.x rabbitmq client