ad loop
add thread and time event
add print