added type to packet header