change serialize structure, add kryo serializer and use it as default