fix for switch device build