some updates with codemirror init