lock-routine hacks