monitored writer now has two modes, tree mode and simple mode. StatsWriter now works as intended