create thread interface