first attempt to get threads working