updated file parsing