misc:add custome server and encode