add resouce lua