remove unused code & move stuff
drop parse trees with empty nodes

(todo: why does this happen?)