the thread creation finally works..need to work on thread cancellation