got threading actually working somewhat