inject resource dir