support new export variant, write proper json