fix issue with missing file helper function