add block manager and test