load segments.inc