have a bunch of intermediate stuff ready for polarization mapping, ready to carry it to the rest of the code.
polarization in mapping is sort-of working