add connectDevice method