updated for editor saving