I don't like to have a file just for printing debug message. please consider move this function back.