minor updates to raw_data code