add basic Serializable support