added lock script