changed max value for psk mod to 255