Better support of connectoin and smartphone base example