fetch data from stdin