fixing up threading option