add some debug printout
modify