adding PAM stuff