bunch of debugging