remove some pmem code