device and rule manager