update distributed code