support dry run mode in 3.7