changed handling of rabbit connection setup