add encode decode parameters.