locks, logs, two set variables