I keep geting threadworms every 3-4 months apart they go away and come back, what to do?

Look for source. Completing a medication as prescribed by your doctor should completely clear your system of parasites, and family members should also be treated at the same time. Household pets should also be screened and treated by a vet. For persistent or recurrent infections, stools samples should be sent to a lab for identification.