updated serviceregistry usage