add some code for debug