update crud to throw IllegalArgumentException on disabled metadata