implemented new serialization with xstream