primitive verion of editor