updated version of render-options-injector