added error detection to language details