Shmem emulation that somehow works