fixing in port and packet parsing