decreased binary size on windows significantly, fixed cmd bug