fix cps refactor issue, add ast pretty-printer