updated intermediate dir