added a switch with the first two socket messages