use exists $args{server} in missing places, and do the same with sock