added negated templates and created CopyRule interface