contentimport/export code cleanup + rewrote export get_nodes