added some print msg for debug.