resolves #20; further work on #19 such that pileup tests are passing