update: read files in binary mode