add serializable behavior in visitors classes