editor and main file