- extend debug and log
- update by CreeW
cvsimport