initial version of reader generator