dealing with dcmgw gateway returned data