reading dates file only once and logging errors