add encode request