rewrite remaining xseg functions with the new allocation scheme