better handling missing resources