started work on register script