added stuff to thread, loop stuff