committing some code mirror beginnings, but I want to branch off for that