really, really fixing #106. I tested it this time. It works. I promise. And it deletes stuff instead of echo'ing debug blahblah this time