enable log file and num to help debug