fixed running on *nix platforms