add hash verification