fixed a bug where we accidently duplicated unsupported stdout/stderr
fix startup race