changes to how binary file is input