support for applying diffs to sequences
applying patches