move socket to libextra