moved default binary file treatment to the start