support for returning results in flat mode on write