cache dir and res dir are now the same.