more functions pushed to C code