exported readState variable