improvements handling binary model files