added a few debug stuffs