wrap loadPlugin() in instanceReady event