added legacy hash verification