add statistics
log and return statistics
fix file openers
fix second reader iteration