add error console. grammar changes refresh tree window. no tree if grammar error or no input.