make safe heap work in asm