updated plugin loading