WIP: migrate raw documents to file system