Packet handling fixes

Fixed packet handling, removed nodetype.