add checking lua and plugin