updated file helper