better server - client passing of variables