ported to new ItemMirror codebase