update for auto lock