organizing simple pam script