add serialization code to properties.
add more serialization functions.