added register script