mod pwd handling