add rekey feature