main change is to export csv and generate visual mapping with same structures and similar unwinding code