stdin working fine now