relocated registering of plugin