add binary file check