sending state on connect