move check for input via standard input