update postcard to encode params