rewrote pileup class from scratch to just do what we want. is working now :)