rules file cleanup