work in progress on Rule management