set function pointers in drv.init