updating profile stuff and fixing creating a thread