plug-in: generate instance