text editor and error catching
editor and errors