moves files; fixes optioanl segmants