added itertextfile prototype