added serializer to snippets