updated registration script