improve xmtstage add checksum calculation