intial working version of tld setup and working, needs further testing but good enough for early alpha merge