make context names case-insensitive and throw exception if not found