updated parser for editor