first attempt at fix for pam problem