added default rules and basic flags