inject dependencies into resources