rename write_rule_file to write_rule and vice-versa, its more clear like that