basic ruleset serialization