add java serialization