add c code into script