fixes for global function pointers