update register script