chaptereditor debugged