support function pointers in multiphase