profile creating and destroying a switch