closes #16 - toggle is now not a switch, but a value