fixing connection to device
updates to work better with bluetooth