fix potential timeout conflict with opening files