grape_sample and just_threads