update batch service registration code