1. restore lua resources.