add pams mods code back still needs values put in, etc.