adding default case for unknown packet types
adjusting for unexpected behavior