added a bunch of prints and fixed some stuff while testing