lock script update