executing in new thread
thread returns: 0
