added lock script var