added default states for connection

do nothing when it is not necessary