switch to uint64_t for timestamps