generator support for external def rules