add logic thread