wip: extract blocks