migration to BSD sockets