update to packet class
update to packet functions