check for stdin