add app
add thread