move mode7 to plugin