Debugging this strange bug
context switching works
merged to master