setting up for c code gen