switch 2events at runtime
Merge branch 'debug_fit' of github.com:peruzzim/UserCode into debug_fit