trying to speed up the new rulemultiply...
added regex support for finding a device. use --device 680 to match a 680.
support for checking more kinds of flags.