- fix connect method