added enabled flag to rule and changed a couple of rule implementations