start of codemirror futzing