make LocalFileNode more generic