still debugging. damnit.