updated read to use the config setting for rabbitmq