starting to work on rule manager