fix chance and cli listner for *Nix