change size and offset from uint32_t to uint64_t