adds filename to nodes