added papi functionality to files