RRW coding. dragSwitches stuff