added function exists check to keep compability with kebo plugin.