change isError to isSuccess (internal flag)