fix registration on main thread; introducing new commandexecutor