fix packet formats