resolve dirs