hooked up kernel functions in script.c