renamed server and client for simplicity