some experiments with threads