more informative error messages during context creation