added adition argument to read from stdin