adding switch to backend