hooked up c_ functions to script