added debug messages i want to kill this piece of poop