add the registration code