the changes necessary to allow for stdin as a data source.