refactor gdoc formatter and getter to use new format