make Http class injectable