scan,connect,disconnect all working in mock and live