register script