fix timeout issue when directories are crowded