set get sharedMemory working