fixed the factory for identity helper/plugin