script to desprotect links