worked out a better c workflow.