got BlockFactory working