Rewriting plugin load to work with sonic