make server and client work