Refactor [server_start] and [client_start]