still debugging readmap and postpred -- not completed