added pattern serializer (cypher)