adjustments for param passing to cpp