distinguish loading errors from module errors