use reflect library to check offsets
32 bit fixes