added minification safe injection method