added flags to frame header(encryption type, coding type, message type)