used piping to speed up bedgraph rading; output is nicer