renderer2: moving to c stuff