add setConnectedComponent() and some others functions