modifies cpp arguments with runtime ref