rule templates can now include methods