reworked custom_rules.xml a bit