- reworked packethandling (note: untested)