add fmt and kill in windows