add .flat output to pre_edge()

from BR's Athena, I think.  May need refinement