Extract the switch id from internal traps
remove the the copying of the switch data