add smem retrieval check for relations