comment out trap_memory