register script.