simplify the loading of heap segments