complete file with small bugs: When running on ews, only the first start machine can use grep function.