optimized loading model files