moved locking mechanism from block to blockinfo