WIP: fix case for binary file