zlib compression, connect and socket timeout, authentication added