add pmem_debug ... trying to fix pmem allocation error