update for new File API