taking care of registration failure