injecting EMF instead creating manually