add some debug logs