add typemap serializer