script fixed to work with multithreading on rdma