got a basic version of server and client working