add shared memory stuffs