adapted all to windows