modified directive injection to support being minified