ameliorations mineures avant refacto threads