now depends on bucket and tweaked json flags.