possibility to switch mode while sketch is running