add redirect stdin/stderr to get version