fixed demo to reflect new read_data API