restart in differend thread, bugfixes