download, stdout trimming