refactor AMQ comm and add AMQ message to script request