got script working on windows