add a simple printLock