a lot of changes in the switcheroo function.

Tweaked switcheroo logic, added option to use switcheroo automatically.