implement read_operator (untested)