moved pipe.sh to main directory and added stats pipe.