add some debug statements