add log and reduce process number