fix script and config to allow qpid to work