modified the script, change another way to check whether the KSK sign or not