added heap_init and heap_offerx