adapted heap; better paging for multiarch