add some debug tools