got threading to work... sort of