make tries serializable.