implement checksum for upstream requests