add timestamp and checksum