udated plugin functionality