adding in some new packet decoding stuff