stdin works