added base parsing function for editor