Merge "Root invalidation, write and grid flags, local." into klp-dev