add pamp2stack.sh