changed kgPlugin