updates for editing ASTs
almost implemented