inital attempt at threading