creating connect/connected interface