added more checks to rabbitmq