[#1010] part b switch where plugin registration happens