got rid of thread code for now