diff --git a/simics-workspace/modules/afdxES/packet-frame.dml b/simics-workspace/modules/afdxES/packet-frame.dml
index 25c88ed..9dfba28 100644
--- a/simics-workspace/modules/afdxES/packet-frame.dml
+++ b/simics-workspace/modules/afdxES/packet-frame.dml
@@ -243,9 +243,6 @@ method init_event() {
     local double bag;

 	for (; i < $vl_enable_info.enable_num; ++i) {
-		local dbuffer_t *dbuf = new_dbuffer();
-		local uint8 *index = dbuffer_append(dbuf, sizeoftype(uint8));
-
         if ($scheduling_cfg_ram_array[i].BAG == 0) {
             bag = 0.005;
         } else {
diff --git a/simics-workspace/modules/afdxES2/packet-frame.dml b/simics-workspace/modules/afdxES2/packet-frame.dml
index 31ccd5b..b497630 100644
--- a/simics-workspace/modules/afdxES2/packet-frame.dml
+++ b/simics-workspace/modules/afdxES2/packet-frame.dml
@@ -217,9 +217,6 @@ method init_event() {
     local double bag;

 	for (; i < $vl_enable_info.enable_num; ++i) {
-		local dbuffer_t *dbuf = new_dbuffer();
-		local uint8 *index = dbuffer_append(dbuf, sizeoftype(uint8));
-
         if ($scheduling_cfg_ram_array[i].BAG == 0) {
             bag = 0.005;
         } else {
diff --git a/simics-workspace/modules/afdxES/packet-frame.dml b/simics-workspace/modules/afdxES/packet-frame.dml
index 9dfba28..4608e22 100644
--- a/simics-workspace/modules/afdxES/packet-frame.dml
+++ b/simics-workspace/modules/afdxES/packet-frame.dml
@@ -246,7 +246,7 @@ method init_event() {
         if ($scheduling_cfg_ram_array[i].BAG == 0) {
             bag = 0.005;
         } else {
-            bag = $scheduling_cfg_ram_array[i].BAG / 1000000;
+            bag = $scheduling_cfg_ram_array[i].BAG / 1000000.0;
         }

 		inline $send_frame.post(bag, &($vl_enable_info.vl[i]));
diff --git a/simics-workspace/modules/afdxES2/packet-frame.dml b/simics-workspace/modules/afdxES2/packet-frame.dml
index b497630..9140ef9 100644
--- a/simics-workspace/modules/afdxES2/packet-frame.dml
+++ b/simics-workspace/modules/afdxES2/packet-frame.dml
@@ -220,7 +220,7 @@ method init_event() {
         if ($scheduling_cfg_ram_array[i].BAG == 0) {
             bag = 0.005;
         } else {
-            bag = $scheduling_cfg_ram_array[i].BAG / 1000000;
+            bag = $scheduling_cfg_ram_array[i].BAG / 1000000.0;
         }

 		inline $send_frame.post(bag, &($vl_enable_info.vl[i]));
diff --git a/simics-workspace/modules/afdxES/afdxES.dml b/simics-workspace/modules/afdxES/afdxES.dml
index 2c239bd..cb89f34 100644
--- a/simics-workspace/modules/afdxES/afdxES.dml
+++ b/simics-workspace/modules/afdxES/afdxES.dml
@@ -89,6 +89,18 @@ attribute is_cfg_done "If true, don't change cfg table index and write cfg table
     parameter allocate_type = "bool";
 }

+attribute is_packet_udp_log_on "If true, print the packeted udp info" {
+    parameter allocate_type = "bool";
+}
+
+attribute is_packet_ip_log_on "If true, print the packeted ip info" {
+    parameter allocate_type = "bool";
+}
+
+attribute is_packet_mac_log_on "If true, print the packeted mac info" {
+    parameter allocate_type = "bool";
+}
+

 // USER-TODO: Add init() and post_init() methods here, if needed.
 // init() will be run to set the empty state of the model, before any
diff --git a/simics-workspace/modules/afdxES/packet-frame.dml b/simics-workspace/modules/afdxES/packet-frame.dml
index 4608e22..5c1c45d 100644
--- a/simics-workspace/modules/afdxES/packet-frame.dml
+++ b/simics-workspace/modules/afdxES/packet-frame.dml
@@ -54,7 +54,7 @@ method packet_udp_header(Udp_Header_Structure *udp_header_structure) {
 	udp_header_structure->UDP_LENGTH = UDP_HEADER_LENGTH + $pciport.tx_frame_len.frame_len;
 	udp_header_structure->UDP_CHECKSUM = 0;

-    if (1) {    // fix me
+    if ($is_packet_udp_log_on) {
         local Upd_Header_Log udp_header_log;
         udp_header_log.port_type = port_type;
         udp_header_log.source_udp_port = source_udp_port;
@@ -91,7 +91,7 @@ method packet_ip_header(IP_Header_Structure *ip_header_structure) {
 		ip_header_structure->IP_DESTINATION_ADDRESS = (0xe << 28) | (0xe0 << 16) | ($transmit_cfg_ram_array[$pciport.tx_port_id.id].ram_data_part1.VL_ID);
 	}

-    if (0) {                    // fix me
+    if ($is_packet_ip_log_on) {
         local IP_Header_Log ip_header_log;
         ip_header_log.ip_multicast = ip_multicast;
         ip_header_log.ip_header_structure = ip_header_structure;
@@ -110,7 +110,7 @@ method packet_mac_header(MAC_Header_Structrue *mac_header_structure) {

 	mac_header_structure->INTERFACE_CONSTANT = $transmit_cfg_ram_array[$pciport.tx_port_id.id].ram_data_part2.INTERFACE_ID<<5 ;

-    if (0) {
+    if ($is_packet_mac_log_on) {
         call $print_mac_header(mac_header_structure);
     }
 }
@@ -126,7 +126,6 @@ method packet_data(Item *afdx_frame, Afdx_Frame_Packet* afdx_frame_packet,int fi
 	memcpy(afdx_frame->frame + memcpy_offset, &ipv4, IPV4_LENGTH);
 	memcpy_offset += IPV4_LENGTH;

-	//ip checksum
 	local uint16 ip_check_sum = 0;
 	afdx_frame_packet->ip_header_structure.TOTAL_LENGTH = IP_HEADER_LENGTH + UDP_HEADER_LENGTH + afdx_frame_packet->send_frame_packet.afdx_payload_length;
 	call $ip_check_sum(cast(&afdx_frame_packet->ip_header_structure, uint8*), IP_HEADER_LENGTH) -> (ip_check_sum);
@@ -135,7 +134,7 @@ method packet_data(Item *afdx_frame, Afdx_Frame_Packet* afdx_frame_packet,int fi
 	memcpy(afdx_frame->frame + memcpy_offset, &afdx_frame_packet->ip_header_structure, IP_HEADER_LENGTH);

 	memcpy_offset += IP_HEADER_LENGTH;
-	if(afdx_frame_packet->send_frame_packet.first == FIRST)	{
+	if (afdx_frame_packet->send_frame_packet.first == FIRST)	{
 		memcpy(afdx_frame->frame + memcpy_offset, &afdx_frame_packet->udp_header_structure, UDP_HEADER_LENGTH);
 		memcpy_offset += UDP_HEADER_LENGTH;
 		afdx_frame->size =afdx_frame_packet->send_frame_packet.header_length + UDP_HEADER_LENGTH +
@@ -226,11 +225,8 @@ method send_frame_fragment(Afdx_Frame_Packet* afdx_frame_packet) {
 		local uint2 sub_vl_id = $transmit_cfg_ram_array[$pciport.tx_port_id.id].ram_data_part3.SUB_VL_ID;

 		$tx_mib.tx_ip_count++;
-		log "info" : "nic1 send to nic2";
 		call $EnQueue(&($vl[vl_index].sub_queue[sub_vl_id]), afdx_frame);
-		log "info" : "init send time start!";
 		if (!$init_send_time) {
-		log "info" : "init send end!";
 		    call $init_event();
             call $init_phy();
 			$init_send_time = true;
diff --git a/simics-workspace/modules/afdxES/packet-frame.dml b/simics-workspace/modules/afdxES/packet-frame.dml
index 5c1c45d..9525f8b 100644
--- a/simics-workspace/modules/afdxES/packet-frame.dml
+++ b/simics-workspace/modules/afdxES/packet-frame.dml
@@ -95,7 +95,7 @@ method packet_ip_header(IP_Header_Structure *ip_header_structure) {
         local IP_Header_Log ip_header_log;
         ip_header_log.ip_multicast = ip_multicast;
         ip_header_log.ip_header_structure = ip_header_structure;
-        call $print_ip_heaer(&ip_header_log);
+        call $print_ip_header(&ip_header_log);
     }
 }