updated API for rahtu, randomizedPrim, MCG etc