adding papply to the deploy process