bugfix, packet handler now reads the data correctly