major rewrite, renamed to insert plugin, addons support