decode packets
updated testing script after merge.