download and merge seg files