embedded plugin code