return error on failed load