added hook for connecting to remote rabbitmq