gets stdin working