fixed socketname detection