fix stat lookup and make default timeout 10 sec