use custom socket only in osx