fix unix socket handling