add logic to prevent dups and enable deleting of created rules