Support changing the root and loading a file by url.