did a bunch of nasty debug things