backwards compatibility fix for rules serde