add reading from stdin