added useHTTP to client side code