check binary file (close #22)