text_reader.cpp: use the state machine data from text_reader.fsm