added win compatibility