replace third-party lua