stdin working