damn ugly locking