stringify whole doc