add serialization to HasStrings