after testing on real units, fixed socket read