start: replace init_*_seg with memset/memcpy