added code to connect to a bluetooth socket