working on shared mem R and H debug