bugfix mod, refactoring common/crc64 function