debug output, improved model loader