function prototypes for mpifennel