threading done, core finished. btw it's becoming messy again