get rid of XS_PROTOCOL switches