correctly unpack 32bit integers