add pam patch