implement debug mode
implement editor pane