adds max_records to istream.base