fix PAM to support all features