passing in http to functions