custom serializer modified; vector math operations added