add init and connect