clean up footswitch func