switch back to using pa, add more debug