public void writeRemoteNode(long id, Tile remote) throws IOException {
		String line;
		boolean parse = false;
		
		try {
			FileReader fr = new FileReader(remote.nodesFn);
			BufferedReader br = new BufferedReader(fr);

			while ((line = br.readLine()) != null) {
				if (parse) {
					if (line.contains(" id=\"")) {
						break;
					}
					else try {
						nodesExtraWriter.write(line + "\n");
					} catch (IOException e) {
						System.err.println("error writing to file: " + nodesExtraFn);
						e.printStackTrace();
					}
				}
				else if (line.contains(" id=\"" + id + "\"")) {
					try {
						nodesExtraWriter.write(line + "\n");
					} catch (IOException e) {
						System.err.println("error writing to file: " + nodesExtraFn);
						e.printStackTrace();
					}
					parse = true;
				}
			}
			//close BufferedReader
			try {
				br.close();
			} catch (Exception e) {
				System.err.println("error closing BufferedReader");
				e.printStackTrace();
			}
		} catch (IOException e) {
			System.err.println("error opening file: " + remote.nodesFn);
			e.printStackTrace();
		} finally {
			try {
				nodesExtraWriter.flush();
			} catch (IOException e) {
				System.err.println("error flushing file: " + nodesExtraFn);
				e.printStackTrace();
			}
		}
	}