improve stream error handling
correctly load material from android asset