minor refactoring; removed sysout
make configurable whether or not to reuse editor