add serializable attributes; fixes #21