Better errors, resolve dotdots in paths