add demo output and set thread name