fix issue in
* nb cpu lock
* statistics
still working on dummy examples: bugs remain in registry