add lua script for fixing the secure link problem