restructured to use rasterengine processing (multicore)