moved connect call to allow getting of name