Better way of updating server ref?