set up a system for keeping track of whether or not data is readOnly, untested