added WIN support (not tested)