path simplification and not grabbing previous lines