export selected nodes

(ui still missing)
remove old unused functions