added management command loadrules and abstract model