modified editor for local and remote sessions