add getPlugin function for use in automation