made fact work for windows and nix