add support for reading files per line