modified server to stay alive for each client