unused parameters $sm for plugins factory