bunch of debug done