             delete testSplit;
         }
 
-        tri_bvh_in_array   = new eavlConstArrayV2<float4>( (float4*)tri_bvh_in_raw, tri_bvh_in_size/4, tri_bvh_in_tref);
-        tri_bvh_lf_array   = new eavlConstArrayV2<float>( tri_bvh_lf_raw, tri_bvh_lf_size, tri_bvh_lf_tref);
-        tri_verts_array    = new eavlConstArrayV2<float4>( (float4*)tri_verts_raw,numTriangles*3, tri_verts_tref);
-        tri_matIdx_array   = new eavlConstArrayV2<int>( tri_matIdx_raw, numTriangles, tri_matIdx_tref );
+        tri_bvh_in_array   = new eavlConstArrayV2<float4>( (float4*)tri_bvh_in_raw, tri_bvh_in_size/4, tri_bvh_in_tref, cpu);
+        tri_bvh_lf_array   = new eavlConstArrayV2<float>( tri_bvh_lf_raw, tri_bvh_lf_size, tri_bvh_lf_tref, cpu);
+        tri_verts_array    = new eavlConstArrayV2<float4>( (float4*)tri_verts_raw,numTriangles*3, tri_verts_tref, cpu);
+        tri_matIdx_array   = new eavlConstArrayV2<int>( tri_matIdx_raw, numTriangles, tri_matIdx_tref, cpu );
 
         INIT(eavlConstArray<float>,tri_norms,numTriangles*9);
         //INIT(eavlConstArray<int>, tri_matIdx,numTriangles);

            delete testSplit;
        }

        sphr_bvh_in_array   = new eavlConstArrayV2<float4>( (float4*)sphr_bvh_in_raw, sphr_bvh_in_size/4, sphr_bvh_in_tref);
        sphr_bvh_lf_array   = new eavlConstArrayV2<float>( sphr_bvh_lf_raw, sphr_bvh_lf_size, sphr_bvh_lf_tref);
        sphr_verts_array    = new eavlConstArrayV2<float4>( (float4*)sphr_verts_raw,numSpheres, sphr_verts_tref);
        sphr_matIdx_array   = new eavlConstArrayV2<int>( sphr_matIdx_raw, numSpheres,  sphr_matIdx_tref );
        sphr_scalars_array  = new eavlConstArrayV2<float>(sphr_scalars_raw, numSpheres, sphr_scalars_tref);
        /*no need for normals, trivial calculation */
        //INIT(eavlConstArray<int>, sphr_matIdx,numSpheres);


    indexScan = NULL;
    setDefaultColorMap();
    cout<<"Construtor Done. Dirty"<<endl;


    if(eavlExecutor::GetExecutionMode() == eavlExecutor::ForceCPU ) cpu = true;
    else cpu = false;
}

void eavlRayTracerMutator::setColorMap3f(float* cmap,int size)
