clean up prints and link flag for papi