made pretty huge changes to plugin importing