parsing and applying revisions