add timeout to check hash