reorganized block map (no blockMap template anymore, code duplication for the moment)