added revgraph and modified work_rc