switching to internal socket_open func