implementing the fetch of name ids in shared memory