rename connectDevice to connect