adding legacy_switch to both server and client gems