renamed segment_t -> segment_handle_t