server and client connections working