add create thread and validation