add a cal.c files for remote function.