why not bool ret = connect...?