transform directives are now any directive passed as a function