private InputStream getcached(String nm) throws IOException {
			/*
			 * if(ResCache.global == null) throw(new
			 * FileNotFoundException("No resource cache installed"));
			 * return(ResCache.global.fetch("mm/" + nm));
			 */
			if (mappingSession > 0) {
				String fileName;
				if (gridsHashes.containsKey(nm)) {
					Coord coordinates = gridsHashes.get(nm);
					fileName = "tile_" + coordinates.x + "_" + coordinates.y;
				} else {
					fileName = nm;
				}

				File inputfile = new File("map/"
						+ Utils.sessdate(mappingSession) + "/" + fileName
						+ ".png");
				if (!inputfile.exists())
					throw (new FileNotFoundException("Minimap cache not found"));
				return new FileInputStream(inputfile);
			}
			throw (new FileNotFoundException("No resource cache installed"));
		}