try to solve binary file problems