add getSharedData interface, refine getSharedMemory