abstract away connection to server
add class to evaluate input from client