using psocksxx instead of socketlibrary