added some more debug code, since i did in fact break everything