init on connected