Fix: use run time stdin and stdout, not load time