tried a simple switch, it stays always in initial value 