better checking of material database options