added encode
added extlibrary zlib