convert dir to shmem obj
makes cleaner shmem data structure