getting fitting working in secondary thread