wip: consistent flush ordering

wip