work out with dataframe only. rewrite.
summary and simple view csv written. almost verified