errors related to sha512 corrected