add timeout to avoid long waiting