Fixes: #2168 rewrote the main inc when plugin have been migrated to simple plugin