inject resource