debugged a bunch of things