check for loading errors