made adjustments for cmd.exe