put in explicit lock and unlock so that locking can be checked