initializing connection to client and adding a prediction helper