move cmp_mem_access to separate repo