merged network and raster modes.