decomposed load_segment into store_segment and load_page.