clear up some structured editor code