added limited support for windows