debug read on stdin