main papi program works