method now reads files only 100 bytes at a time