. "d upon such terms as he may direct, and the extension may be granted though the time has expired for doing the act or taking the proceedings." . . .