fixing windows scripts