add serialization annotations.