update of the REKEY script