work in progress.  will likely be replaced by `docview`