add timeout to loldht function