get rid of allow_heap flag