more rubbish in debug mod && small fix in log print