updated injection method, working on new core